import App from './App'
import moment from 'moment'
import uView from '@/uni_modules/uview-ui'
//引入vuex
import store from './store'
import * as filters from "./utils/filters.js"; // global filter
import {
	format,
	render,
	cancel,
	register
} from 'timeago.js';

import Vue from 'vue'
/**
 * 全局filters
 */
Object.keys(filters).forEach((key) => {
	Vue.filter(key, filters[key]);
});
Vue.prototype.$store = store // 把vuex定义成全局组件
Vue.config.productionTip = false
// uview
Vue.use(uView)
uni.$u.config.unit = 'rpx'

App.mpType = 'app'
const app = new Vue({
	...App,
	store
})
app.$mount()
